home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-04-08 | 1.6 KB | 64 lines |
- #
- # Makefile for thesauri programs
- # Written and tested by Christopher Fox 4/25/91
- #
- # Directives:
- # hiearky A program to generate a thesaurus hierarchy. The program
- # is executed by typing
- # hierarky
- # Input files are requested interactively.
- #
- # select A program to generate statistics about thesaurus terms.
- # The program is executed by typing
- # select <direct-file> <inverted-file> <result-file>
- #
- # merge A program to merge two hierachies. The program is excuted
- # by typing
- # merge <invert1> <link1> <invert2> <link2> <result-file>
- #
- # all (default) Make the programs above.
- #
- # test_hierarky Test the hierarky program.
- #
- # test_select Test the select program.
- #
- # test_merge Test the merge program.
- #
- # regression Execute a regression test on all programs.
- #
-
- CFLAGS=-O
- LDFLAGS=
- LIBS=-lm
-
- all: hierarky merge select
-
- hierarky: hierarky.o
- $(CC) $(CFLAGS) -o hierarky hierarky.o $(LIBS)
-
- hierarky.o: hierarky.c
- $(CC) $(CFLAGS) -c hierarky.c
-
- merge: merge.o
- $(CC) $(CFLAGS) -o merge merge.o $(LIBS)
-
- merge.o: merge.c
- $(CC) $(CFLAGS) -c merge.c
-
- select: select.o
- $(CC) $(CFLAGS) -o select select.o $(LIBS)
-
- select.o: select.c
- $(CC) $(CFLAGS) -c select.c
-
- test_select: select dirfile1 invfile1
- ./select dirfile1 invfile1 result
-
- test_merge: merge invfile1 lnkfile1 invfile2 lnkfile2
- ./merge invfile1 lnkfile1 invfile2 lnkfile2 result
-
- test_hierarky: hierarky
- ./hierarky
-
- regression: test_hierarky test_merge test_select
-